<?php
    //已过期订单大部分是不能验证的   除非是admin帐号
    //1: 可以验证   0:不能验证
	$isAdmin = ($_SESSION['sid'] == 1) ? 1 : 0;
?>
<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/terminal_dev.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/ui/Calendar.css"/>
<style type="text/css">
	.calendar{ position:fixed; top:314px; width:550px; z-index:1000; background:#f0f1f3}
	.calendar .title{ position:relative}
	.calendar table td div.detail{ height:40px; }
	.calendar table th{ text-align:center}
	.calendar table td span{ width:100%; height:100%; float:none; line-height:40px; text-align:center; float:none}
    .orderList .checkBtn_a{ background: #3DBA3F; color: #FFFFFF; border: 0 none;float: right;display: inline-block;height: 34px;margin-top: 3px;line-height: 34px;padding: 0 50px;}
    .provingList .colorGray{color: #92A0AB;}
    .provingList .width150{display: inline-block; width: 200px; margin-right: 5px;}
    .provingList .width80{display: inline-block; width: 80px; margin:0 160px 0 15px; color: #F07845; font-size: 14px;}
    .provingList .checkButton{display: inline-block; height: 30px;line-height: 30px;padding: 0 20px;background: #ff7734;color: #fff; border: 0 none;}
    .provingList .checkButton:hover{background: #ff601a;}
    .provingList .oList {line-height: 20px;position: relative; padding: 10px 35px 10px 15px; border: 0 none;border: 1px solid #DDDDDD;background: #f7f7f7; margin-bottom: 10px;}
    </style>
<!--[if lt IE 7]><div id="terminalWrap" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 terminalWrap"> <![endif]-->
<!--[if IE 7]><div id="terminalWrap" class="lt-ie10 lt-ie9 lt-ie8 ie7 terminalWrap"> <![endif]-->
<!--[if IE 8]><div id="terminalWrap" class="lt-ie10 lt-ie9 ie8 terminalWrap"> <![endif]-->
<!--[if IE 9]><div id="terminalWrap" class="lt-ie10 ie9 terminalWrap"><![endif]-->
<!--[if gt IE 9]><!--><div id="terminalWrap" class="terminalWrap"> <!--<![endif]-->
	<input name="" type="hidden" id="isAdmin" value="<?=$isAdmin?>"/>
	<input id="gsid" name="" type="hidden" value="<?=$_GET['sid']?>"/>
	<div class="termTopTit">票券验证</div>
	<div class="prodBox">
		<div id="prodPhoto" class="prodPhoto">
			<img id="" class="loading" src="http://www.12301.cc/images/icons/gloading.gif" alt=""/>
			<img class="error" src="http://www.12301.cc/images/defaultThum.jpg" alt=""/>
		</div>
		<div class="prod">
			<div class="prodDetail">
				<span class="col"><em class="lt">产品ID：</em><span id="term_prodId" class="rt">--</span></span>
				<span class="col"><em class="lt">终端号：</em><span id="term_termNum" class="rt">--</span></span>
				<span class="col"><em class="lt">产品编号：</em><span id="term_prodNum" class="rt">--</span></span>
			</div>
			<div class="prodList">
				<span class="t">选择产品：</span>
				<input id="prodSearchInp" class="prodSearchInp" type="text"/>
			</div>
			<!--<div class="prodList" style="margin-top:6px"><span class="t">验证时间：</span><input id="termDateInp" class="termDateInp" type="text"/></div>-->
		</div>
		<div id="prodBoxStatus" class="prodBoxStatus"></div>
	</div>
	<div id="termContainer" class="termContainer">
		<input id="termSearInp" class="termSearInp" value="<?=$_GET['chk']?$_GET['chk']: '凭证码 / 手机号'?>" type="text"/><input type="button" id="termSearBtn" class="termSearBtn" value="验证"/>
		<ul id="myOrderList" class="orderList"></ul>
	</div>
	<ul id="prodListUl" class="prodListUl"></ul>

	<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
	<script type="text/javascript" src="http://www.12301.cc/module/wxh/js/terminal/TerminalCore.js"></script>
	<script type="text/javascript" src="http://www.12301.cc/js/class/CalendarCore.js"></script>
	<script type="text/javascript" src="http://www.12301.cc/module/wxh/js/terminal/terminal-pc.js"></script>

</div>
<div id="calendarContainer" style="display:none" class="calendar"></div>
<script type="text/javascript">
	$(function(){ new Terminal() })
</script>